package com.yf.catcafe.mapper;

import com.yf.catcafe.pojo.enity.Order;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrdersMapper {


    void insert(Order order);

    @Select("select * from tb_orders")
    List<Order> query();

    @Delete("delete from tb_orders where id=#{id}")
    void delete(Long id);

    void seckillInsert(Order order);
}
